<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <base href="<?= base_url(1) ?>" target="main"/>
        <link type="text/css" href="css/left.css?ver=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <div class="expandall"><a href="javascript:;">+</a></div>
        <div class="allowkey e"><a href="javascript:;">+</a></div>
        <div id="container">
            <?php
            $ascii = 64;
            foreach ($menu as $m => $n) {
                if (isset($n['hide']) && $n['hide'])
                    continue;
                $ascii++;
                ?>
                <?php if (check_level_menu(50, $m)) { ?>
                    <h1 class="type <?= $m == 'general' ? 'top' : '' ?>"><a href="javascript:void(0)"><img src="images/left/<?= $m ?>.png" /><?= $n['name'] ?><b class="e g<?= $ascii ?>">(<?= chr($ascii) ?>)</b></a></h1>
                    <div class="content">
                        <div class="topline"></div>
                        <ul class="menu">
                            <?php foreach ($n['item'] as $u => $v) { ?>
                                <?php
                                $t = isset($v['permission']) ? $v['permission'] : $v['url'];
                                $t = explode('/', $t);
                                $t[1] = isset($t[1]) ? $t[1] : 'index';
                                ?>
                                <?php if (check_level_menu(100) || check_level_menu(50, $t[0], $t[1]) || (isset($v['nopermission']) && $v['nopermission'])) { ?><li><a href="<?= substr($v['url'], 0, 7) == 'http://' ? $v['url'] : site_url($v['url']) ?>" <?= isset($v['target']) ? "target='{$v['target']}'" : '' ?> rel="<?= $v['text'] ?>"><?= $v['text'] ?></a></li><?php } ?>
                            <?php } ?>
                        </ul>
                    </div>
                <?php } ?>
            <?php } ?>
            <div class="bottom"></div>
        </div>
        <script type="text/javascript">
            var LANG = <?= json_encode($jslang) ?>;
        </script>
        <script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.min.js?ver=<?= $config['version'] ?>"></script>
        <script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.easing.js?ver=<?= $config['version'] ?>"></script>
        <script type="text/javascript" src="<?= $config['res_url'] ?>/js/base.js?ver=<?= $config['version'] ?>"></script>
        <script type="text/javascript" src="js/left.js?ver=<?= $config['version'] ?>"></script>
    </body>
</html>